package com.aaa.system.service;

import com.aaa.entity.Menu;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Author 崔灿
 * @Date 2023/02/27 09:22
 * @ClassName RoleMenuService
 * @Description
 * @Version 1.0
 */


public interface MenuService extends IService<Menu> {
    List<Menu> selectPermsByUserid(Integer userid);

    /**
     * 查询菜单
     * @return
     */
    Result findAllMenu();

    /**
     * 添加菜单
     * @param menu
     * @return
     */
    Result addMenu(Menu menu);

    Result deleteMenu(Integer menuId);

    Result selectAll();

    Result updateMenu(Menu menu);



}
